package com.jspgou.cms.manager;

import java.util.List;
import java.util.Map;

import com.jspgou.common.page.Pagination;
import com.jspgou.cms.entity.Advertise;

public interface AdvertiseMng {
	public Pagination getPage(Long storeId, Long adspaceId,Boolean enabled, int pageNo, int pageSize);

	public List<Advertise> getList(Long adspaceId, Boolean enabled);

	public Advertise findById(Long id);

	public Advertise save(Advertise bean, Long adspaceId,
			Map<String, String> attr);

	public Advertise update(Advertise bean, Long adspaceId,
			Map<String, String> attr);

	public Advertise deleteById(Long id);

	public Advertise[] deleteByIds(Long[] ids);

	public void display(Long id);

	public void click(Long id);
}